package com.example.sulingorder.utils;

import java.util.UUID;

/**
 * @author 13221
 */
public class MyUtils {
    /**
     * 根据UUID取hash值+随机数，产生命令唯一标识
     * @throws InterruptedException
     */
    public static String getOrderSeq() {
        String orderSeq = Math.abs(UUID.randomUUID().toString().hashCode()) + "";
        while (orderSeq.length() < 16) {
            orderSeq = orderSeq + (int) (Math.random() * 10);
        }
        return orderSeq;
    }
}
